package com.example.peibei.ui.adapter;

import android.view.View;
import android.widget.LinearLayout;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.dingtao.common.bean.SearchResult;
import com.dingtao.common.bean.SystemMessage;
import com.example.peibei.R;

import java.util.List;

public class SystemMessageAdapter extends BaseQuickAdapter<SystemMessage.RecordsDTO, BaseViewHolder> {
    public SystemMessageAdapter(@Nullable List<SystemMessage.RecordsDTO> data) {
        super(R.layout.item_system_message, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SystemMessage.RecordsDTO item) {
        helper.setText(R.id.tv_content,item.getContent()).setText(R.id.tv_time,item.getDate());
    }
}
